package com.example.mybatisplus.model.domain;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 *
 * </p>
 *
 * @author lxp
 * @since 2024-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Resident对象", description="")
public class Resident extends Model<Resident> {
    private static final long serialVersionUID = 1L;
    @TableId(value = "Id", type = IdType.AUTO)
    private Integer Id;
    private String name;
    private String type;
    @TableField("isCheckin")
    private Integer isCheckin;
    private String major;
    @TableField("Bed_bedId")
    private Integer bedBedid;
    @TableField("Bed_Room_roomId")
    private Integer bedRoomRoomid;
    @TableField("Bed_Room_Building_buildingId")
    private Integer bedRoomBuildingBuildingid;
    @TableField("Bed_Room_Building_Area_areaId")
    private Integer bedRoomBuildingAreaAreaid;

    @ApiModelProperty(value = "是否删除")
    @TableField("isDeleted")
    @TableLogic
    private Boolean deleted;
    @Override
    protected Serializable pkVal() {
        return this.Id;
    }

}
